package com.night.gateway.feign;

import com.night.common.entity.ResultVo;
import com.night.common.entity.account.User;
import com.night.common.entity.role.MenuPerm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Dark-Morning
 * 2022/10/28 12:06
 */
@FeignClient("perm-manager")
@RequestMapping("/api/v1/role")
public interface PermManagerFeign {
    @PostMapping("/getPermByRoleId")
    ResultVo<List<MenuPerm>> getPermByRoleId(@RequestParam("roleId") int roleId);

//    @PostMapping("/getUserByAccount")
//    ResultVo<User> getUserByNumber(@RequestBody User user);
}
